package org.test.generic;

import java.util.HashMap;

public class Pair<T> {
	private T first = null;
	private T second = null;

	public Pair(T fir, T sec) {
		this.first = fir;
		this.second = sec;
	}

	public T getFirst() {
		return this.first;
	}

	public T getSecond() {
		return this.second;
	}

	public void setFirst(T fir) {
		this.first = fir;
	}

	public static void main(String[] args) {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("123", "xgj");
		//		Pair<String> pair1 = new Pair("string", 1);
		//		System.out.println(pair1.getSecond());
		//		Pair<String> pair2 = new Pair<String>("string", 1);
		Pair<String> pair2 = new Pair<String>("string", "1");
	}

}